package com.jmxcfc.blfsc.langyu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.jmxcfc.blfsc.langyu.entity.SendDetailSub;
import com.jmxcfc.blfsc.langyu.mapper.SendDetailSubMapper;
import com.jmxcfc.blfsc.langyu.service.ISendDetailSubService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 朗宇短信扩展记录 服务实现类
 * </p>
 *
 * @author pbs
 * @since 2024-06-04
 */
@Service
public class SendDetailSubServiceImpl extends ServiceImpl<SendDetailSubMapper, SendDetailSub> implements ISendDetailSubService {

    /**
     * 通过msgId查询发送记录查询
     * @param msgId
     * @return
     */
    @Override
    public SendDetailSub findDetailByMsgId(String msgId){
        LambdaQueryWrapper<SendDetailSub> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(SendDetailSub::getMsgId, msgId);
        return getOne(queryWrapper);
    }
}
